package com.forevershine.common.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	
	public static Date convertStringToDate(String pattern , String dateString) throws ParseException
	{		
		SimpleDateFormat sdFormat = new SimpleDateFormat(
				pattern);
		return sdFormat.parse(dateString) ;
	}

}
